package com.itheima.day5.improve.test1;

public class Sales {
    private String name;
    private String id;
public void print(){
        System.out.println("销售部的:"+name+",员工编号:"+id);
}
    public Sales() {
    }

    public Sales(String name, String id) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Sales{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
